#pragma once

#include <glibmm.h>
#include "../../Shared/GObjHelpers.hpp"
#include "../../LibBuildNG/ErrorListener.hpp"

namespace BuildNG
{
  class InStream;

  struct GccOutputLine
  {
    enum LineType
    {
      Noise,
      Error,
      Warning,
    };
    LineType            line_type;
    ErrorLocationInfo   error_location;
    Glib::ustring       msg;

    static void parse_gcc_output_line(const Glib::ustring &line,GccOutputLine &out);
  };
}
